package com.wcarmon.life.view.itemRenderers {

	import com.wcarmon.life.model.LifeModelLocator;
	import mx.controls.treeClasses.*;
	import mx.collections.*;
	import com.wcarmon.life.vo.*;
	
	public class OrganizeTreeItemRenderer extends TreeItemRenderer{
	
		public function OrganizeTreeItemRenderer() {
			super();
		}	
		
		override public function set data( value:Object ) : void {
			super.data = value;
			
			var isProject : Boolean = ( value.state_id == BlockVO.STATE_PROJECT_INDEX );
			
			if( isProject && value.isIdle ){
				setStyle("color", 0x550000);
				setStyle("fontWeight", 'bold');
			}else{
				setStyle("color", 0x000000);
				setStyle("fontWeight", 'normal');
			}
		}
	}
}